package com.cloud.spider.clients;

import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Header;
import com.dtflys.forest.annotation.Var;
import org.springframework.stereotype.Component;

/**
 * @Description: 公共 http 请求客户端
 * @ClassName: publicHttpClient
 * @Package: com.cloud.spider.clients
 * @Author 柳晓宇
 * @Create 2023/10/12 11:18
 * @Version 1.0
 */
@Component
public interface PublicCrawlerClient {

    @Header(name="User-Agent",value="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0Safari/537.36")
    @Get("{url}")
    String http(@Var("url") String url);
}
